﻿using System;
using System.IO;
using UnityEngine;

namespace SEXY
{
	// Token: 0x0200029D RID: 669
	[Serializable]
	public class CharFileInfoCustomFemale : CharFileInfoCustom
	{
		// Token: 0x060010F6 RID: 4342 RVA: 0x0006BDDC File Offset: 0x00069FDC
		public CharFileInfoCustomFemale() : base(Enum.GetNames(typeof(CharDefine.HairKindFemale)).Length)
		{
			this.sex = 1;
			this.shapeValueFace = new float[CharDefine.cf_headshapename.Length];
			this.shapeValueBody = new float[CharDefine.cf_bodyshapename.Length - 1];
			this.hairId = new int[this.hairKindNum];
			this.hairColor = new HSColorSet[this.hairKindNum];
			this.hairAcsColor = new HSColorSet[this.hairKindNum];
			this.MemberInitialize();
		}

		// Token: 0x060010F7 RID: 4343 RVA: 0x0006BEF8 File Offset: 0x0006A0F8
		private new void MemberInitialize()
		{
			base.MemberInitialize();
			this.texEyeshadowId = 0;
			this.eyeshadowColor.SetDiffuseRGBA(Color.white);
			this.texCheekId = 0;
			this.cheekColor.SetDiffuseRGBA(Color.white);
			this.texLipId = 0;
			this.lipColor.SetDiffuseRGBA(Color.white);
			this.texMoleId = 0;
			this.moleColor.SetDiffuseRGBA(Color.white);
			this.matEyelashesId = 0;
			this.eyelashesColor.SetDiffuseRGBA(Color.white);
			this.eyelashesColor.hsvDiffuse.S = 1f;
			this.matEyeHiId = 0;
			this.eyeHiColor.SetDiffuseRGBA(Color.white);
			this.texSunburnId = 0;
			this.sunburnColor.SetDiffuseRGBA(Color.white);
			this.matNipId = 0;
			this.nipColor.SetDiffuseRGBA(Color.white);
			this.nipColor.hsvDiffuse.S = 1f;
			this.matUnderhairId = 0;
			this.underhairColor.SetDiffuseRGBA(Color.white);
			this.underhairColor.hsvDiffuse.S = 1f;
			this.nailColor.SetDiffuseRGBA(Color.white);
			this.nailColor.hsvDiffuse.S = 1f;
			this.areolaSize = 0.5f;
			this.bustSoftness = 0.5f;
			this.bustWeight = 0.5f;
			int[] array = new int[4];
			array[1] = 1;
			int[] array2 = array;
			for (int i = 0; i < this.hairId.Length; i++)
			{
				this.hairId[i] = array2[i];
				this.hairColor[i] = new HSColorSet();
				this.hairColor[i].hsvDiffuse = new HsvColor(30f, 0.5f, 0.7f);
				this.hairColor[i].hsvSpecular = new HsvColor(0f, 0f, 0.5f);
				this.hairColor[i].specularIntensity = 0.4f;
				this.hairColor[i].specularSharpness = 0.55f;
				this.hairAcsColor[i] = new HSColorSet();
				this.hairAcsColor[i].hsvDiffuse = new HsvColor(0f, 0.8f, 1f);
				this.hairAcsColor[i].hsvSpecular = new HsvColor(0f, 0f, 0.5f);
				this.hairAcsColor[i].specularIntensity = 0.4f;
				this.hairAcsColor[i].specularSharpness = 0.55f;
			}
			this.name = "カスタム娘";
			this.personality = 0;
		}

		// Token: 0x060010F8 RID: 4344 RVA: 0x0006C188 File Offset: 0x0006A388
		protected override bool LoadSub(BinaryReader br, int customVer, int colorVer)
		{
			this.texEyeshadowId = br.ReadInt32();
			this.eyeshadowColor.Load(br, colorVer);
			this.texCheekId = br.ReadInt32();
			this.cheekColor.Load(br, colorVer);
			this.texLipId = br.ReadInt32();
			this.lipColor.Load(br, colorVer);
			this.texMoleId = br.ReadInt32();
			this.moleColor.Load(br, colorVer);
			this.matEyelashesId = br.ReadInt32();
			this.eyelashesColor.Load(br, colorVer);
			this.matEyeHiId = br.ReadInt32();
			this.eyeHiColor.Load(br, colorVer);
			this.texSunburnId = br.ReadInt32();
			this.sunburnColor.Load(br, colorVer);
			this.matNipId = br.ReadInt32();
			this.nipColor.Load(br, colorVer);
			this.matUnderhairId = br.ReadInt32();
			this.underhairColor.Load(br, colorVer);
			this.nailColor.Load(br, colorVer);
			this.areolaSize = br.ReadSingle();
			this.bustSoftness = br.ReadSingle();
			this.bustWeight = br.ReadSingle();
			return true;
		}

		// Token: 0x060010F9 RID: 4345 RVA: 0x0006C2A8 File Offset: 0x0006A4A8
		protected override bool ModCheckSub()
		{
			return !CharFileInfoCustom.RangeEqualOn(0f, this.areolaSize, 1f) || !CharFileInfoCustom.RangeEqualOn(0f, this.bustSoftness, 1f) || !CharFileInfoCustom.RangeEqualOn(0f, this.bustWeight, 1f);
		}

		// Token: 0x04001263 RID: 4707
		public int texEyeshadowId;

		// Token: 0x04001264 RID: 4708
		public HSColorSet eyeshadowColor = new HSColorSet();

		// Token: 0x04001265 RID: 4709
		public int texCheekId;

		// Token: 0x04001266 RID: 4710
		public HSColorSet cheekColor = new HSColorSet();

		// Token: 0x04001267 RID: 4711
		public int texLipId;

		// Token: 0x04001268 RID: 4712
		public HSColorSet lipColor = new HSColorSet();

		// Token: 0x04001269 RID: 4713
		public int texMoleId;

		// Token: 0x0400126A RID: 4714
		public HSColorSet moleColor = new HSColorSet();

		// Token: 0x0400126B RID: 4715
		public int matEyelashesId;

		// Token: 0x0400126C RID: 4716
		public HSColorSet eyelashesColor = new HSColorSet();

		// Token: 0x0400126D RID: 4717
		public int matEyeHiId;

		// Token: 0x0400126E RID: 4718
		public HSColorSet eyeHiColor = new HSColorSet();

		// Token: 0x0400126F RID: 4719
		public int texSunburnId;

		// Token: 0x04001270 RID: 4720
		public HSColorSet sunburnColor = new HSColorSet();

		// Token: 0x04001271 RID: 4721
		public int matNipId;

		// Token: 0x04001272 RID: 4722
		public HSColorSet nipColor = new HSColorSet();

		// Token: 0x04001273 RID: 4723
		public int matUnderhairId;

		// Token: 0x04001274 RID: 4724
		public HSColorSet underhairColor = new HSColorSet();

		// Token: 0x04001275 RID: 4725
		public HSColorSet nailColor = new HSColorSet();

		// Token: 0x04001276 RID: 4726
		public float areolaSize = 0.5f;

		// Token: 0x04001277 RID: 4727
		public float bustSoftness = 0.5f;

		// Token: 0x04001278 RID: 4728
		public float bustWeight = 0.5f;
	}
}
